package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.ViewTypeDao;
import com.suke.czx.modules.examstack.exam.entity.ViewTypeEntity;
import com.suke.czx.modules.examstack.exam.service.ViewTypeService;



@Service("viewTypeService")
public class ViewTypeServiceImpl implements ViewTypeService {
	@Autowired
	private ViewTypeDao viewTypeDao;
	
	@Override
	public ViewTypeEntity queryObject(Integer id){
		return viewTypeDao.queryObject(id);
	}
	
	@Override
	public List<ViewTypeEntity> queryList(Map<String, Object> map){
		return viewTypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return viewTypeDao.queryTotal(map);
	}
	
	@Override
	public void save(ViewTypeEntity viewType){
		viewTypeDao.save(viewType);
	}
	
	@Override
	public void update(ViewTypeEntity viewType){
		viewTypeDao.update(viewType);
	}
	
	@Override
	public void delete(Integer id){
		viewTypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		viewTypeDao.deleteBatch(ids);
	}
	
}
